package cn.shop.transcation.order.entity;

import cn.shop.utils.constant.Constant;
import cn.shop.utils.enums.OrderStatus;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Min;
import java.time.LocalDate;

/**
 * @author : 李一涵
 * @date : Created in 2022/5/23 10:57
 * @description :
 */
@Data
@ToString
public class CertQueryReq {


    /**
     * 当前页码
     */
    @Min(value = 1, message = "页码不能为0")
    private int current;
    /**
     * 每页记录数
     */
    @Min(value = 1, message = "每页记录数不能为0")
    private int size;

    /**
     * 起始时间
     */
    @DateTimeFormat(pattern = Constant.DATE_FORMAT)
    private LocalDate startTime;

    /**
     * 结束时间
     */
    @DateTimeFormat(pattern = Constant.DATE_FORMAT)
    private LocalDate endTime;

    private Long partitionId;

    private Long userId;

    private OrderStatus status;
}
